
<!-- 控件html开始： -->      
<div class="xsy_su_refer {{className}} xsy_listpreview xsy_su_refer_null" is-rk-widget="true">
     <div class="xsy_su_refer_header">
         <h2  class="xsy_su_refer_title" url="{{linkOfMore}}">
            <a href="{{linkOfMore}}" name="{{uuid}}">
                <span class="xsy_su_refer_icon {{iconClass}}"></span>
                <span class="xsy_su_refer_name ellipsis">{{title | i18n}}</span>
                <span class="xsy_su_refer_num">（<span class="xsy_su_refer_num_num">{{amount}}</span>）</span>
                {{if showMoreBtn == true}}
                    <span class="xsy_su_refer_more">{{ 'MORE' | i18n }}</span>
                {{/if}}
            </a>
            
         </h2>
         <div class="xsy_su_refer_right">
             <div class="xsy_su_refer_buttonset">
                 <ul>
                    <li {{if !isFold}}style="display:none;"{{/if}}>
                        {{if isFold}}
                            <a href="javascript:;" class="xsy_su_refer_expand" act="toggle"><i></i><span>{{ 'CRM_CORE_EXPAND_REFER' | i18n }}</span></a>
                        {{else}}
                            <a href="javascript:;" class="xsy_su_refer_expand" act="toggle"><i></i><span>{{ 'CRM_CORE_COLLAPSE_REFER' | i18n }}</span></a>
                        {{/if}}
                    </li>
                    {{each buttons as button i}}
                     <li>
                        <a href="javascript:;" class="xsy_su_refer_{{button}}" act="{{ opt.createAct }}" 
                        {{if opt.childEntityId == 2 && data.common.belongId == 3}} accountId = "{{data.common.accountId}}" {{/if}} 
                        business="{{ opt.business }}" businessId="{{detailId}}" businessname="{{ title }}" data-id="{{if entityTypes[0] }}{{entityTypes[0].id}}{{/if}}" entity-id="{{opt.childEntityId}}" postdata='{{ if opt.business == "customize" || data.common.belongId > 999}}{"relationBelongId":{{data.common.belongId}},"relationId":{{detailId}}}{{ else }}{"{{relationType}}":{{detailId}}}{{/if}}' pos="refer"><i></i></a>
                     </li>
                     {{/each}}
                     <li>
                        <a href="javascript:;" class="xsy_su_refer_set"><i></i></a>
                     </li>
                 </ul>
             </div>
         </div>
     </div>
     <div class="xsy_su_refer_body" {{if isFold == true}}style="display:none;"{{/if}}>
     {{each children as child i}}
        {{if child.type == 'card' && showCard == true}}<div class="xsy_su_refer_card" {{if opt && opt.attributes && opt.attributes.showMode == 'card'}} current="true" {{else}} style="display:none;" {{/if}}>loading...</div>{{/if}}
        {{if child.type == 'grid' && showGrid == true}}<div class="xsy_su_refer_grid" {{if opt && opt.attributes && opt.attributes.showMode == 'grid'}} current="true" {{else}} style="display:none;" {{/if}}>loading...</div>{{/if}}
     {{/each}}
     {{bodyHtml}}
     </div>
</div>